package com.mh.study.jackson.annotations;

import com.fasterxml.jackson.annotation.JsonManagedReference;

/**
 * @author meng.han
 * @since 2021-11-26
 */
public class ItemWithRef {

    public int id;
    public String itemName;

    @JsonManagedReference
    public UserWithRef owner;


    public ItemWithRef() {
    }

    public ItemWithRef(int id, String itemName, UserWithRef owner) {
        this.id = id;
        this.itemName = itemName;
        this.owner = owner;
    }

}
